/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: #ebf5fb;
}

/* Header */
header {
    background-color: #17415e;
    padding: 15px 0;
    color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

h1 {
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Navegación */
nav {
    display: flex;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li {
    position: relative;
    transition: transform 0.3s ease;
}

nav ul li:hover {
    transform: translateY(-3px);
}
nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease-in-out;
    padding: 10px 15px;
}



nav ul li a:hover {
    color: #ffcc00;
    text-shadow: 0px 0px 10px rgba(255, 204, 0, 0.8);
}

/* Menú responsive */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* Responsividad */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #005f8b;
        position: absolute;
        top: 70px;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        padding: 10px;
    }

    nav.active {
        display: flex;
    }

    .logo {
        width: 100px;
    }

    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .servicio {
        width: 90%;
    }

    footer p {
        font-size: 0.8rem;
    }
}



/* Main */
main {
    padding: 60px 20px;
}



/* Sección ¿Quiénes somos? */
.about-us {
    text-align: center;
    margin-bottom: 40px;
    background-color: #ffffff; /* Fondo blanco para resaltar el texto */
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.about-us h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0077b6;
    font-weight: bold;
}

.about-us p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-weight: bold;
}
@media (max-width: 768px) {


    .about-us p {
        text-align: left;
        margin: 0; /* opcional: elimina el centrado automático */
    }
}
/* Fuente global para las secciones */
.about-us, .mission, .vision, .values, .history {
    font-family: 'Kanit', sans-serif;
}

/* Sección ¿Quiénes somos? */
.about-us {
    text-align: center;
    margin-bottom: 40px;
    background-color: #ffffff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.about-us h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0077b6;
    font-weight: bold;
}

.about-us p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-weight: bold;
}

/* Misión y Visión */
.mission-vision {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.mission, .vision {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: calc(50% - 10px);
    transition: transform 0.3s ease-in-out;
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
}

.mission h3, .vision h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #0077b6;
    font-weight: bold;
}

.mission p, .vision p {
    font-size: 1.2rem;
    color: #555;
    text-align: justify;
    font-weight: bold;
}

/* Valores */
.values {
    text-align: center;
    margin-bottom: 40px;
    background-color: #ffffff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.values h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0077b6;
    font-weight: bold;
}

.values ul {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-weight: bold;
}

.values ul li {
    margin-bottom: 15px;
}

/* Historia */
.history {
    text-align: center;
    margin-bottom: 40px;
    background-color: #ffffff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.history h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0077b6;
    font-weight: bold;
}

.history p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-weight: bold;
}

/* Responsividad */
@media (max-width: 768px) {
    .mission, .vision {
        width: 100%;
        margin-bottom: 20px;
    }

    .about-us p,
    .mission p,
    .vision p,
    .values,
    .values h3,
    .values ul,
    .history p {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
}


/* Equipo */
.team {
    text-align: center;
    margin-bottom: 40px;
}

.team h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0077b6;
    font-weight: bold;
}

.team-member {
    display: inline-block;
    width: 250px;
    margin: 0 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-member p {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #333;
    font-weight: bold;
}

/* Pie de página */
footer {
    background-color: #005f87;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 50px;
}

footer p {
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .logo {
        width: 120px;
    }

    nav {
        width: 100%;
        padding: 10px 0; /* reducido */
    }

    nav ul {
        gap: 10px; /* menos espacio entre elementos */
    }

    nav ul li a {
        font-size: 1.2rem; /* tamaño de texto más pequeño */
        padding: 6px 10px; /* área más compacta */
        display: inline-block;
    }

    .mission, .vision {
        width: 100%;
        margin-bottom: 15px;
    }

    .team-member {
        width: 180px;
    }
}



@media (max-width: 768px) {


    h1 {
        font-size: 1.3rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .team-member {
        width: 180px;
    }

    .mission, .vision {
        width: 100%;
    }

    .history p, .about-us p {
        font-size: 1rem;
    }
}







/* Estilo general para la sección del equipo */
.equipo {
    padding: 50px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.imagen-equipo {
    margin-bottom: 40px;
}

.imagen-equipo img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.titulo-equipo {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center; /* Centra el texto */
    background-color: #f0f0f0; /* Fondo suave */
    padding: 10px 20px; /* Espaciado interno */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
    text-transform: uppercase; /* Convierte el texto a mayúsculas */
    letter-spacing: 1px; /* Espaciado entre letras */
}

.fichas-equipo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ficha-miembro {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    width: 100%;
    max-width: 250px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ficha-miembro:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.imagen-perfil {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #007BFF;
}

.cargo {
    font-weight: bold;
    color: #007BFF;
    margin-bottom: 10px;
}

.ficha-miembro p {
    font-size: 14px;
    color: #555;
}

.ficha-miembro p strong {
    color: #222;
}

/* Ajustes para pantallas grandes */
@media (min-width: 768px) {
    .fichas-equipo {
        justify-content: space-between;
    }
    
    .ficha-miembro {
        width: calc(33.333% - 20px);
    }
}

/* Ajustes para pantallas extra grandes */
@media (min-width: 1200px) {
    .ficha-miembro {
        width: calc(25% - 20px);
    }
}




/* Estilo para la sección de anuncios */
#anuncios {
    background-color: #f1f1f1;
    padding: 60px 0;
    margin-bottom: 40px;
}

#anuncios h2 {
    text-align: center;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 50px; /* Más espacio debajo del título */
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Aseguramos 5 columnas en todo momento */
    gap: 30px; /* Espaciado entre los anuncios */
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ajuste de la anchura de los anuncios */
.anuncio {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.anuncio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.anuncio-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.anuncio img {
    width: 100%;
    height: 230px; /* Ajustamos la altura para que no esté tan grande */
    object-fit: cover;
    border-radius: 15px 15px 0 0; /* Solo las esquinas superiores redondeadas */
    transition: transform 0.3s ease;
}

.anuncio img:hover {
    transform: scale(1.05);
}

.anuncio-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.anuncio-info h3 {
    font-size: 1.8em;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.anuncio-info p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-anuncio {
    padding: 12px 24px;
    font-size: 1.1em;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    align-self: flex-start; /* Alineamos el botón a la izquierda */
}

.btn-anuncio:hover {
    background-color: #0056b3;
}

/* Mejoras para computadoras de escritorio grandes */
@media (min-width: 1200px) {
    .container {
        grid-template-columns: repeat(5, 1fr); /* Aseguramos que haya 5 columnas por fila */
        gap: 30px; /* Espaciado más amplio entre los anuncios */
    }

    .anuncio {
        width: 100%; /* Los anuncios ocupan todo el ancho disponible */
    }

    .anuncio img {
        height: 230px; /* Ajustamos la altura de los anuncios */
    }

    .anuncio-info {
        padding: 25px;
    }
}

/* Pantallas medianas (tablets, laptops) */
@media (max-width: 1199px) and (min-width: 768px) {
    .container {
        grid-template-columns: repeat(3, 1fr); /* 3 anuncios por fila */
        gap: 40px; /* Aumentamos el espacio entre los anuncios */
    }

    .anuncio img {
        height: 200px;
    }

    .anuncio-info {
        padding: 20px;
    }
}

/* Pantallas pequeñas (teléfonos móviles) */
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr); /* 2 anuncios por fila */
        gap: 30px; /* Espaciado más amplio */
    }

    .anuncio img {
        height: 180px;
    }
}

/* Pantallas muy pequeñas (móviles muy pequeños) */
@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr; /* 1 anuncio por fila */
    }

    .anuncio img {
        height: 160px;
    }
}












/* Estilos generales */
.area-container {
    padding: 40px 20px;
    background-color: #f0f4f8; /* Fondo más suave */
    font-family: 'Kanit', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
}

/* Sección del área */
.area-section {
    margin-bottom: 60px;
    text-align: center;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 20px; /* Añadido padding */
}

/* Títulos */
h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 30px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Imagen grupal */
.group-image img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 4px solid #ddd;
    object-fit: cover;
}

/* Estilos para los miembros */
.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjetas de miembros */
.member-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(33.333% - 30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto;
}

.member-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Imagen del miembro */
.member-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%; /* Círculo para las imágenes */
    margin: 20px auto;
    border: 4px solid #fff; /* Borde blanco alrededor */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Información del miembro */
.member-info {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco con opacidad */
    color: #333;
    transition: background-color 0.3s ease;
    flex-grow: 1;
}

.member-card:hover  {
    background-color: rgba(240, 240, 240, 0.9);
}

/* Nombre del miembro */
.member-info .name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.member-card:hover .name {
    color: #007bff; /* Color azul en hover */
}

/* Rol del miembro */
.member-info .role {
    font-size: 14px;
    font-style: italic;
    color: #777;
    margin-top: 5px;
}

/* Responsividad: pantallas pequeñas */
@media (max-width: 768px) {
    .area-container {
        padding: 20px 10px;
    }

    h2 {
        font-size: 28px;
    }

    .team-members {
        gap: 20px;
    }

    .member-card {
        width: calc(50% - 20px); /* Dos miembros por fila */
    }
}

/* Responsividad: pantallas muy pequeñas */
@media (max-width: 480px) {
    .member-card img {
        width: 120px; /* Ajuste de la imagen para pantallas muy pequeñas */
        height: 120px;
    }

    .member-info {
        padding: 10px;
    }

    .member-card {
        width: 100%; /* Un miembro por fila */
    }
}

/* Estilo adicional para mejorar la accesibilidad */
.area-section:focus-within {
    outline: 2px solid #007bff; /* Resaltar la sección cuando está enfocada */
}
